package com.liao.service;

import com.liao.bean.Member;
import com.liao.bean.result.PageResult;

public interface MemberService {
    /**
     * 根据账号模糊查询会员列表
     * @param currentPage
     * @param pageSize
     * @param account
     * @return
     * @throws Exception
     */
    PageResult<Member> queryMemberListByPage(Integer currentPage, Integer pageSize, String account) throws Exception;

    /**
     * 添加会员
     * @param member
     * @throws Exception
     */
    void addMember(Member member) throws Exception;

    /**
     * 修改会员
     * @param member
     * @throws Exception
     */
    void editMember(Member member) throws Exception;

    /**
     * 根据id删除会员
     * @param memberId
     * @throws Exception
     */
    void deleteMember(String memberId) throws Exception;
}
